<?php if(!empty($docket))
{?>
<script type="text/javascript" src="<?= $this->config->base_url(); ?>assets/js/jquery-1.4.3.min.js"></script>
<script type="text/javascript" src="<?= $this->config->base_url(); ?>assets/js/jquery-ui.js"></script>
<link rel="stylesheet" href="<?= $this->config->base_url(); ?>assets/css/jquery-ui.css" type="text/css" charset="utf-8" />

<div class="row-fluid">
<h3 align="left"> Docket No. Collected</h3>
<hr>
<br>
<br>
<br>
<br>
<div class="span4"> </div>
<div class="span6">
<form method="post" action="<?php echo site_url('/admin/diagnosis/docket_no')?>">
<label for="inputEmail" class="col-lg-2 control-label"><b>Case No.</b></label>
<input type="text" readonly="readonly" name="hp_case" value="<?php echo $hp_case; ?>" />
<label for="inputEmail" class="col-lg-2 control-label"><b>Receipt No.</b></label>
<input type="text" readonly="readonly" name="case_no" value="<?php echo $case_no; ?>" />
<input type="hidden" name="case_id" value="<?php echo $case_id;?>"/>

 <label class="col-lg-2 control-label"><b>Docket No.</b></label>
<input type="text" readonly="readonly" value="<?php echo $docket->docket_no;?>" />
<label  class="col-lg-2 control-label"><b>Dispatched Date</b></label>

 <input data-date-format="yyyy/mm/dd" value="<?php echo $docket->dispatch_date;?>"readonly="readonly" type="text" class="date1 " id="datepicker1" name ="dispatch_date" />
           
      
<label  class="col-lg-2 control-label"><b> Expected Date</b></label>

            <input data-date-format="yyyy/mm/dd"  value="<?php echo $docket->expected_date;?>"type="text" readonly="readonly" class=" date1 " id="datepicker2" name ="expected_date" />
           
       


<br>
<br>
<p align="center">
</p>

</div>


</div>

</div>


<?}

else{?>


<script type="text/javascript" src="<?= $this->config->base_url(); ?>assets/js/jquery-1.4.3.min.js"></script>
<script type="text/javascript" src="<?= $this->config->base_url(); ?>assets/js/jquery-ui.js"></script>
<link rel="stylesheet" href="<?= $this->config->base_url(); ?>assets/css/jquery-ui.css" type="text/css" charset="utf-8" />

<div class="row-fluid">
<h3 align="left"> Collect Docket No.</h3>
<hr>
<br>
<br>
<br>
<br>
<div class="span4"> </div>
<div class="span6">
<form method="post" action="<?php echo site_url('/admin/diagnosis/docket_no')?>">
<label for="inputEmail" class="col-lg-2 control-label"><b>Receipt No.</b></label>
<input type="text" readonly="readonly" name="case_no" value="<?php echo $case_no; ?>" />
<label for="inputEmail" class="col-lg-2 control-label"><b>Case No.</b></label>
<input type="text" readonly="readonly" name="case_no" value="<?php echo $hp_case; ?>" />
<input type="hidden" name="case_id" value="<?php echo $case_id;?>"/>

 <label class="col-lg-2 control-label"><b>Docket No.</b></label>
<?php echo form_input($docket_no);?>
<label  class="col-lg-2 control-label"><b>Dispatched Date</b></label>

            <input data-date-format="yyyy/mm/dd" type="text" class="date1 " id="datepicker1" name ="dispatch_date" />
           
      
<label  class="col-lg-2 control-label"><b> Expected Date</b></label>

            <input data-date-format="yyyy/mm/dd"  type="text" class=" date1 " id="datepicker2" name ="expected_date" />
           
       
<label for="inputEmail" class="col-lg-2 control-label"><b>Mail To Customer</b></label>
<input type="checkbox" name="email" value="1"/>
<br>
<br>
<p align="center">
<input type="submit" value="Save" class="btn btn-danger"/></p>

</div>


</div>

</div>
<?} ?>
<script type="text/javascript">
$(document).ready(function(){
	$('.date1').datepicker({ dateFormat: 'yy-mm-dd' });

	
})
</script>